var express = require('express');
var path = require('path');

var router = express.Router();

router.get('/',function(req,res,next){
    res.redirect('/index');
});

router.get('/index', function(req, res, next) {
    console.log('index');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/index.html'));
});

router.get('/wish', function(req, res, next) {
    console.log('wish');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/wish.html'));
});

router.get('/detail', function(req, res, next) {
    console.log('detail');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/detail.html'));
});

router.get('/post', function(req, res, next) {
    console.log('post');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/post.html'));
});

router.get('/feedback', function(req, res, next) {
    console.log('feedback');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/feedback.html'));
});

router.get('/introduction', function(req, res, next) {
    console.log('introduction');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/introduction.html'));
});

router.get('/letter', function(req, res, next) {
    console.log('letter');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/letter.html'));
});

router.get('/letterdetail', function(req, res, next) {
    console.log('letterdetail');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/letterdetail.html'));
});

router.get('/record', function(req, res, next) {
    console.log('record');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/record.html'));
});

router.get('/login', function(req, res, next) {
    console.log('login');
    res.sendFile(path.join(path.dirname(__dirname), '/dist/pages/login.html'));
});


module.exports = router;



